import req from "../../utils/request";
import qs from 'qs'

//查询系统外键下拉
export function get_getResourceByPage(query) {
    return req({
      url: "/api/getResourceByPage",
      method: "get",
      params: query,
    });
}
//查询资源组
export function get_getResourceGroup(query) {
    return req({
      url: "/api/getResourceGroup",
      method: "get",
      params: query,
    });
}
//资源新增
export function put_putResource(query) {
    return req({
      url: "/api/putResource",
      method: "put",
      data: qs.stringify(query),
    });
}
//资源修改
export function put_editResource(query) {
    return req({
      url: "/api/editResource",
      method: "put",
      data: qs.stringify(query),
    });
}
//资源删除
export function put_delResource(query) {
    return req({
      url: "/api/delResource",
      method: "put",
      data: query,
      headers: {
        'Content-Type': 'application/json'
      },
    });
}